//


#import "GuidePageViewController.h"
#import "NewMainViewController.h"

@interface GuidePageViewController ()
{
    int index;
}

@end

@implementation GuidePageViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    btnGO.layer.cornerRadius = 4;
    btnGO.layer.borderWidth = 1.0f;
    btnGO.layer.borderColor = [UIColor whiteColor].CGColor;
    
    btnGO4.layer.cornerRadius = 4;
    btnGO4.layer.borderWidth = 1.0f;
    btnGO4.layer.borderColor = [UIColor whiteColor].CGColor;
    
    if (iPhone_4)
    {
        btnGO4.hidden = NO;
        btnGO.hidden = YES;
        [image1 setImage:[UIImage imageNamed:@"guide_page_image1_4.png"]];
        [image2 setImage:[UIImage imageNamed:@"guide_page_image2_4.png"]];
        [image3 setImage:[UIImage imageNamed:@"guide_page_image3_4.png"]];
    }else
    {
        btnGO4.hidden = YES;
        btnGO.hidden = NO;
    }

}



- (void)scrollViewDidScroll:(UIScrollView *)sender
{
    int currentPage = scrol.contentOffset.x/APP_CONTENT_WIDTH;
    
    page.currentPage = currentPage;
}


-(IBAction)btnGoTo:(id)sender
{
    NewMainViewController * mainView = [[NewMainViewController alloc]initWithNibName:@"NewMainViewController" bundle:nil];
    gApp.nav = [[MyNavigationController alloc]initWithRootViewController:mainView];
    gApp.window.rootViewController = gApp.nav;
}


- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
